// User/pages/Agreement/index.js
import { customRedirect } from '@/utils/route'
Page({
    data: {
      disabled: true
    },
    onBottom() {
      this.setData({
        disabled: false
      })
    },
    onClick() {
      if(this.data.disabled) return;
      wx.setStorage({
        key: 'USER_AGREE_COMPACT',
        data: 1,
        success(res) {
          customRedirect({
            url: '/User/pages/Login/index'
          })
        }
      })
    }
  })